//  @ Project : SSU Robot Simulator
//  @ File Name : Error.cpp
//  @ Date : 4/3/2011
//  @ Author : Andrew Holbrook
//
//

#include "SSURoboSim/ErrorLog/Error.h"
#include "SSURoboSim/ErrorLog/ErrorManager.h"

using SSURoboSim::ErrorLog::Error;
using SSURoboSim::ErrorLog::ErrorManager;

const int Error::DEFAULT = 0;
const int Error::SOLVED = 1;

Error::Error(string message, int errorId)
{
	errorId_ = errorId;
	status_ = Error::DEFAULT;
	message_ = message;
}

Error::~Error()
{
}

void Error::setStatus(int status)
{
	status_ = status;
	ErrorManager::getInstance()->update();
}
